package com.zh.tea.service;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.zh.tea.entity.PageTea;
import com.zh.tea.entity.Tea;

public interface TeaService {
	//增加茶品种类
		public int addTea(Tea tea);
	//动态分页查询所有茶品
		public PageInfo<Tea> getTea(Tea tea,Integer pagNo,Integer PageSize);
	//按照id删除茶品
		public int delTea( Tea tea);
	//动态更新茶品内容
		public int updTea(Tea tea);

		//按id查询
		public Tea getTeaById(Integer id);
	
		public Tea selectOneTea(String teano);
	//搜索名字产地品类id 种类的或查询商品
		public List<Tea> selectTeaByOr(String tea,Integer pageNo,Integer pageSize);
	//	搜索产地 品类id 种类的于查询商品
		public PageInfo<Tea> selectTeaByAnd(Tea tea,Integer pageNo,Integer pageSize);
		
		public Tea selectTeaname(String name);

}